/**
 * Copyright(c) 2010 Ceno Techonologies Co., Ltd.
 *
 * History:
 *   15-6-5 下午5:17 Created by lyyang
 */
package com.xunton.bss.weixin.api.coupon.pdu;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 礼品券
 *
 * @author <a href="mailto:lyyang@ceno.cn">lyyang</a>
 * @version 1.0 15-6-5 下午5:17
 */
public class Gift extends Coupon
{
    @JsonProperty ("gift")
    private GiftData data;

    @Override
    @JsonProperty ("card_type")
    public String getCardType()
    {
        return "GIFT";
    }

    @Override
    public CouponData getData()
    {
        return data;
    }

    @Override
    public void setData(CouponData data)
    {
        this.data = (GiftData)data;
    }
}
